package com.yy.web.pm.alarm.mapper;

import com.yy.web.pm.alarm.alarmDto.AlarmDtoList;
import com.yy.web.pm.alarm.domain.AlarmDate;

import java.util.List;

import com.yy.web.pm.billboard.domain.Dto.BillboardDto;
import com.yy.web.pm.patrol.domain.PeoplePatrol;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AlarmDateMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(AlarmDate record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(AlarmDate record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    AlarmDate selectByPrimaryKey(Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(AlarmDate record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(AlarmDate record);

    int updateBatch(List<AlarmDate> list);

    int batchInsert(@Param("list") List<AlarmDate> list);

    List<AlarmDate> selectAlarmAll(AlarmDate alarmDate);

    int AdminUpdateExamine(AlarmDate alarmDate);

    List<AlarmDtoList> selectAlarmAllDate(AlarmDtoList alarmDtoList);

    List<BillboardDto> selectBillBoardList(BillboardDto billboardDto);

    List<BillboardDto> selectShopAllDate(BillboardDto alarmDate);

    List<AlarmDate> selectAlarmList(PeoplePatrol patrol);
}
